From: Ivan Molodetskikh Date: Wed, 2 Feb 2022 18:11:03 +0000 (+0300) Subject: screenshot: Close on lock X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~135 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3cc045b6b89d5e6db1c12cff219d504b929e2ccb;p=gnome-shell.git screenshot: Close on lock Since the screenshot UI cannot open in GDM or on the lock screen, it seems that simply closing it on any session mode update is sufficient, without adding extra variables. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4996 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 56f3cab7f..fc3334fb7 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1020,6 +1020,8 @@ var ScreenshotUI = GObject.registerClass({ this._lockdownSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.lockdown' }); + Main.sessionMode.connect('updated', () => this.close(true)); + // The full-screen screenshot has a separate container so that we can // show it without the screenshot UI fade-in for a nicer animation. this._stageScreenshotContainer = new St.Widget({ visible: false });